<!DOCTYPE html>
<html {{ with .Site.LanguageCode }}lang="{{ . }}" {{ end }}>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    {{ hugo.Generator }}
    <!-- Permalink & RSSlink -->
    <link rel="canonical" href="{{ .Permalink }}" />
    <meta name="description" content="{{ .Site.Params.Description }}">
    {{ range .AlternativeOutputFormats }}
    <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
    {{ end }}

    <title>{{ if .IsHome }}{{ .Title }}{{ else }}{{ .Title }} &middot; {{ .Site.Title }}{{ end }}</title>

    <link rel="shortcut icon" href="{{ "images/favicon.ico" | absURL }}" />

    <link rel="stylesheet" href="{{ "css/main.css" | absURL }}" />
    {{ if (.Site.Params.isHighlightCode) }}
        {{ if (eq .Site.Params.mode "light") }}
        <link rel="stylesheet"
        href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/atom-one-light.min.css">
        {{ else if (eq .Site.Params.mode "wild")}}
        <link rel="stylesheet"
        href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/gruvbox-light.min.css">
        {{ else}}
        <link rel="stylesheet"
        href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/nord.min.css">
        {{ end }}
    {{ end }}
    <!-- custom css -->
    {{ range .Site.Params.customCSS }}
    <link rel="stylesheet" href="{{ "css/" | absURL }}{{ . }}">
    {{ end }}
</head>
